package com.yhn.init.model.dto.financialTransactions;

import lombok.Data;
import lombok.NonNull;

import javax.validation.constraints.NotNull;
import java.io.Serial;
import java.io.Serializable;

/**
 * 收支记录
 *
 * @author yhnyhn123
 */
@Data
public class FinancialTransactionsAddRequest implements Serializable {


    @NonNull
    private Long purchaseId;

    /**
     * 收支类型：1-收入，2-支出
     */
    @NotNull
    private Integer type;

    /**
     * 对方账号
     */
    private String counterpartyAccount;


    /**
     * 缘由
     */
    private String reason;

    /**
     * 金额
     */
    @NotNull(message = "收支金额不能为空")
    private Integer amount;

    @Serial
    private static final long serialVersionUID = 1L;
}
